package demo1;

class MyThread extends Thread {
    @Override
    public void run() {
        System.out.println("hello world");
    }
}

public class Test {
    public static void main(String[] args) {
        Thread t =  new MyThread();
        t.start();;
    }
}
